﻿@model IEnumerable<TCM.Employee>

@{
    ViewBag.Title = "Index";
}
 <div class="IndexBack">
    @Html.ActionLink(" ", "../")
</div>

<div class="toolbar">
    @Html.ActionLink("Create New", "Create")
</div>
<br />
@*<table class="DataGrid"> *@    
<table class="grdTable" style="width: 100%;" cellspacing="0">
 <thead>
<tr class="GridHeader">
    <tr>
       @* <th>
            @Html.DisplayNameFor(model => model.EmployeeID)
        </th>*@
        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
       @* <th>
            @Html.DisplayNameFor(model => model.NameAr)
        </th>
        *@
        <th>
            @Html.DisplayNameFor(model => model.Email1)
        </th>       
        <th>
            @Html.DisplayNameFor(model => model.Mobile1)
        </th>     
        <th>
            @Html.DisplayNameFor(model => model.Address)
        </th>
        @*<th>
            @Html.DisplayNameFor(model => model.ADDRESSAR)
        </th>  *@ 
        <th>
            @Html.DisplayNameFor(model => model.Phone)
        </th>        
         <th></th>
    </tr>
    </thead>
    <tbody>
@foreach (var item in Model) {
    <tr>
       @* <td>
            @Html.DisplayFor(modelItem => item.EmployeeID)
        </td>*@
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
       @* <td>
            @Html.DisplayFor(modelItem => item.NameAr)
        </td>*@        
        <td>
            @Html.DisplayFor(modelItem => item.Email1)
        </td>      
        <td>
            @Html.DisplayFor(modelItem => item.Mobile1)
        </td>       
        <td>
            @Html.DisplayFor(modelItem => item.Address)
        </td>
       @* <td>
            @Html.DisplayFor(modelItem => item.ADDRESSAR)
        </td> *@
        <td>
            @Html.DisplayFor(modelItem => item.Phone)
        </td>       
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.EmployeeID }) |
           @* @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |*@
            @Html.ActionLink("Delete", "Delete", new { id=item.EmployeeID })
        </td>
    </tr>
}

</tbody>
</table>

